<link rel="stylesheet" href="/styles/thickbox.css" />
<script type="text/javascript" src="/scripts/thickbox.js"></script>
<div id="BodyContainer">
<div id="blockCont">
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top"><div class="Col">
<tal:block tal:content="structure php: this.partial('index/myactivity.html')"/>
</div></td>
	<td valign="top"><div class="Col">
<div class="ModuleBlock">
<h1>
<label>Messages - Settings</label>
<div><a href="/expressions/index/inbox/1"  ><img src="/images/HomeIcon.png" alt="Expression Home" border="0" align="top" class="SetIcon" title="Expression Home"/></a></div>
</h1>
<div class="clear"></div>
<ul class="ModuleMenu">
<li><a href="/expressions/index/groups/7" class="active">Groups</a> </li>
</ul>
<div class="clear hig20"></div>
<div style="padding:2px 5px;" class="txt14"><strong><?php echo $ctx->gname;?></strong> </div>
<div class="clear hig20"></div>

<div class="ModuleHig">
<div>
<div style="float:left; width:110px; padding:2px">&nbsp;<strong>Name</strong> </div>
<div style="float:left; width:196px; padding:2px"><strong>Email Address </strong></div>
<div style="float:left;">&nbsp; </div>
<div style="float:right;">&nbsp;</div>
</div>
<div class="clear"></div>
<?php if(count($ctx->result)>0)
		{
		$i=0; while($i<count($ctx->result)){ ?>
<div class="Anon">
<div class="blkCont"  style="float:left; width:100px; padding:2px">
<p class="Title"><?php echo $ctx->result[$i]['user_name'];?></p>
</div>
<div class="blkCont" style="width:190px; padding:2px">
<p class="Title"><?php echo $ctx->result[$i]['email_id'];?></p>
</div>
<div class="blkCont" style="padding:2px">

<a id="editgroup" href="javascript:void(0);" onclick="editGroup(<?php echo $ctx->result[$i]['id'];?>,'<?php echo base64_encode($ctx->group_id);?>');">Edit</a>
</div>
<div class="blkCont" style="float:right;">

<a href="javascript:void(0);" onclick="removeRecord(<?php echo $ctx->result[$i]['id'];?>);"><span><img id="close_1" class="align_X img_pointer" alt="Delete" title="Delete" src="/images/CloseIcon.png"/></span></a>
</div>
<div class="clear"></div>
</div>
<?php $i++; } } else {?>
<p style="padding:50px 50px"><b><center>No Records in this Group</center></b></p><?php }?>
</div>
<div class="clear"></div>
</div>
</div></td>
<td valign="top">
	<tal:block tal:omit-tag="" tal:content="structure php: this.action('index','activity','expressions')" /></td>
	<td valign="top">
	<div class="ColBanner">
	<div class="ModuleBlock">
	<img src="/images/Gads.gif" /><img src="/images/Gads.gif" /></div>
	</div></td>
  </tr>
</table>

<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<script type="text/javascript">
//<![CDATA[

function removeRecord(val)
{
	//alert("checked"+val);return false;
	$.ajax({
			   
			   type: "POST",
			   dataType: "json",
			   data: "val='"+val+"'",
			   url: "/expressions/index/remove-record/",
			    success: function(data){
					//alert(data.output);return false;
					location.reload();					
					}


			});
	
}
function editGroup(val,group_id)
{
	tb_show('Add A Patient','/expressions/index/editgroupdetails?&val='+val+'&group_id='+group_id+'&height=200&width=600','');
}
function showDiv(type)
{
	if(type == 'r')
	{
		$('#rec').addClass("active");
		$('#sent').removeClass("active");
		$('#sentId').hide();
		$('#recId').show();
	} else {
		//alert(type);
		$('#rec').removeClass("active");
		$('#sent').addClass("active");
		$('#sentId').show();
		$('#recId').hide();
	}

}

//]]>
</script>
